/**
 *  Copyright 2010 ShenYang voole Co. Ltd.
 *  All right reserved. 
 */
package com.dianning.service;

import java.util.List;

import com.dianning.bean.Message;
import com.dianning.bean.Orders;
import com.dianning.bean.Visitor;
import com.dianning.exception.DianningException;
import com.dianning.service.web.PageList;
import com.dianning.service.web.Pages;

/**
 * 功能描述:短消息操作接口
 *
 * 创建日期 Apr 10, 2010
 *
 * @author zhangbaochao
 *
 * @version 1.0
 *
 */
public interface OrdersService {
	
	/**
	 * 保存Orders对象
	 * 
	 * @param orders
	 * 			Orders对象
	 * @return Orders
	 * 			Orders对象
	 */
	public Orders saveOrders(Orders orders);
	
	/**
	 * 更新Orders对象
	 * 
	 * @param orders
	 * 			Orders对象
	 * @return Orders
	 * 			Orders对象
	 */
	public Orders updateOrders(Orders orders);
	
	public void updateOrdersIsnew(long uid,int isnew);
	
	/**
	 * 根据主键ID获取Orders对象
	 * 
	 * @param id
	 * 			主键ID
	 * @return Orders
	 * 			Orders对象
	 */
	public Orders findOrdersById(long id);
	
	/**
	 * 获取Message对象列表
	 * @param fromuid
	 * @param touid
	 * @param folder
	 * @param isnew
	 * @param delstatus
	 * @param orderby
	 * @param ascOrDesc
	 * @param pages
	 * @return PageList
	 */
	public PageList findOrders(long uid,int isnew,int delstatus,String orderby, int ascOrDesc,Pages pages);
}
